﻿<%@ Page Language="C#" MasterPageFile="~/design/Anonym.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="Zadani09.Default" Title="Hlavní stránka" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentVrchniPlaceholder" runat="server">
    <span style="font-size: medium; font-weight: bold; font-family: Arial;">Vítejte na stránkách
        informačního systému uměleckých galerií. </span>
    <br />
    Jakožto anonymní uživatel, si máte možnost pouze informace prohlížet, proto neváhejte
    a zaregistrujte se.
    <h3>
        Dnešní výstavy</h3>
    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Small"></asp:Label>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px" CellPadding="2"
        DataKeyNames="IDVystava" DataSourceID="ObjectDataSource1" ForeColor="Black" GridLines="None">
        <FooterStyle BackColor="Tan" />
        <Columns>
            <asp:CommandField SelectText="Detail" ShowSelectButton="True">
                <ItemStyle Font-Bold="True" />
            </asp:CommandField>
            <asp:BoundField DataField="Jmeno" HeaderText="Jméno" SortExpression="Jmeno" />
            <asp:BoundField DataField="Vernisaz" HeaderText="Vernisáž" SortExpression="Vernisaz" />
            <asp:BoundField DataField="Zacatek" HeaderText="Začátek" SortExpression="Zacatek" />
            <asp:BoundField DataField="Konec" HeaderText="Konec" SortExpression="Konec" />
            <asp:BoundField DataField="OteviraciDoba" HeaderText="Otevírací doba" SortExpression="OteviraciDoba" />
            <asp:BoundField DataField="CenaVstupenkyDeti" HeaderText="Cena vstupenky pro děti" SortExpression="CenaVstupenkyDeti"
                Visible="False" />
            <asp:BoundField DataField="CenaVstupenkyDospeli" HeaderText="Cena vstupenky pro dospělé"
                SortExpression="CenaVstupenkyDospeli" Visible="False" />
            <asp:BoundField DataField="DlouhyPopis" HeaderText="Dlouhý popis" SortExpression="DlouhyPopis"
                Visible="False" />
            <asp:BoundField DataField="IDGalerie" HeaderText="ID galerie" SortExpression="IDGalerie"
                Visible="False" />
            <asp:BoundField DataField="IDVystava" HeaderText="ID výstavy" SortExpression="IDVystava"
                Visible="False" />
            <asp:BoundField DataField="Popis" HeaderText="Popis" SortExpression="Popis" Visible="False" />
            <asp:BoundField DataField="Stav" HeaderText="Stav" SortExpression="Stav" Visible="False" />
        </Columns>
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <AlternatingRowStyle BackColor="PaleGoldenrod" />
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="ctiDnesniVystavy" TypeName="Zadani09.db.ODS.VystavaDataObject">
        <SelectParameters>
            <asp:Parameter Name="razeni" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:Label ID="Label2" runat="server" Text="<h3>Detailní informace o výstavě</h3>"
        Visible="False"></asp:Label>
    <asp:FormView ID="FormView1" runat="server" DataSourceID="ObjectDataSource2" Width="449px"
        DataKeyNames="IDVystava" BackColor="LightGoldenrodYellow" BorderColor="Tan" BorderWidth="1px"
        CellPadding="2" ForeColor="Black">
        <FooterStyle BackColor="Tan" />
        <EditItemTemplate>
            CenaVstupenkyDeti:
            <asp:TextBox ID="CenaVstupenkyDetiTextBox" runat="server" Text='<%# Bind("CenaVstupenkyDeti") %>' />
            <br />
            CenaVstupenkyDospeli:
            <asp:TextBox ID="CenaVstupenkyDospeliTextBox" runat="server" Text='<%# Bind("CenaVstupenkyDospeli") %>' />
            <br />
            DlouhyPopis:
            <asp:TextBox ID="DlouhyPopisTextBox" runat="server" Text='<%# Bind("DlouhyPopis") %>' />
            <br />
            IDGalerie:
            <asp:TextBox ID="IDGalerieTextBox" runat="server" Text='<%# Bind("IDGalerie") %>' />
            <br />
            IDVystava:
            <asp:TextBox ID="IDVystavaTextBox" runat="server" Text='<%# Bind("IDVystava") %>' />
            <br />
            Jmeno:
            <asp:TextBox ID="JmenoTextBox" runat="server" Text='<%# Bind("Jmeno") %>' />
            <br />
            Konec:
            <asp:TextBox ID="KonecTextBox" runat="server" Text='<%# Bind("Konec") %>' />
            <br />
            OteviraciDoba:
            <asp:TextBox ID="OteviraciDobaTextBox" runat="server" Text='<%# Bind("OteviraciDoba") %>' />
            <br />
            Popis:
            <asp:TextBox ID="PopisTextBox" runat="server" Text='<%# Bind("Popis") %>' />
            <br />
            Stav:
            <asp:TextBox ID="StavTextBox" runat="server" Text='<%# Bind("Stav") %>' />
            <br />
            Vernisaz:
            <asp:TextBox ID="VernisazTextBox" runat="server" Text='<%# Bind("Vernisaz") %>' />
            <br />
            Zacatek:
            <asp:TextBox ID="ZacatekTextBox" runat="server" Text='<%# Bind("Zacatek") %>' />
            <br />
            Vstupenka:
            <asp:TextBox ID="VstupenkaTextBox" runat="server" Text='<%# Bind("Vstupenka") %>' />
            <br />
            VystavaDilo:
            <asp:TextBox ID="VystavaDiloTextBox" runat="server" Text='<%# Bind("VystavaDilo") %>' />
            <br />
            Galerie:
            <asp:TextBox ID="GalerieTextBox" runat="server" Text='<%# Bind("Galerie") %>' />
            <br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                Text="Update" />
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
                CommandName="Cancel" Text="Cancel" />
        </EditItemTemplate>
        <InsertItemTemplate>
            CenaVstupenkyDeti:
            <asp:TextBox ID="CenaVstupenkyDetiTextBox" runat="server" Text='<%# Bind("CenaVstupenkyDeti") %>' />
            <br />
            CenaVstupenkyDospeli:
            <asp:TextBox ID="CenaVstupenkyDospeliTextBox" runat="server" Text='<%# Bind("CenaVstupenkyDospeli") %>' />
            <br />
            DlouhyPopis:
            <asp:TextBox ID="DlouhyPopisTextBox" runat="server" Text='<%# Bind("DlouhyPopis") %>' />
            <br />
            IDGalerie:
            <asp:TextBox ID="IDGalerieTextBox" runat="server" Text='<%# Bind("IDGalerie") %>' />
            <br />
            IDVystava:
            <asp:TextBox ID="IDVystavaTextBox" runat="server" Text='<%# Bind("IDVystava") %>' />
            <br />
            Jmeno:
            <asp:TextBox ID="JmenoTextBox" runat="server" Text='<%# Bind("Jmeno") %>' />
            <br />
            Konec:
            <asp:TextBox ID="KonecTextBox" runat="server" Text='<%# Bind("Konec") %>' />
            <br />
            OteviraciDoba:
            <asp:TextBox ID="OteviraciDobaTextBox" runat="server" Text='<%# Bind("OteviraciDoba") %>' />
            <br />
            Popis:
            <asp:TextBox ID="PopisTextBox" runat="server" Text='<%# Bind("Popis") %>' />
            <br />
            Stav:
            <asp:TextBox ID="StavTextBox" runat="server" Text='<%# Bind("Stav") %>' />
            <br />
            Vernisaz:
            <asp:TextBox ID="VernisazTextBox" runat="server" Text='<%# Bind("Vernisaz") %>' />
            <br />
            Zacatek:
            <asp:TextBox ID="ZacatekTextBox" runat="server" Text='<%# Bind("Zacatek") %>' />
            <br />
            Vstupenka:
            <asp:TextBox ID="VstupenkaTextBox" runat="server" Text='<%# Bind("Vstupenka") %>' />
            <br />
            VystavaDilo:
            <asp:TextBox ID="VystavaDiloTextBox" runat="server" Text='<%# Bind("VystavaDilo") %>' />
            <br />
            Galerie:
            <asp:TextBox ID="GalerieTextBox" runat="server" Text='<%# Bind("Galerie") %>' />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                Text="Insert" />
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                CommandName="Cancel" Text="Cancel" />
        </InsertItemTemplate>
        <ItemTemplate>
            <table>
                <tr>
                    <td>
                        <strong>Jméno výstavy:</strong>
                    </td>
                    <td>
                        <asp:Label ID="JmenoLabel" runat="server" Text='<%# Eval("Jmeno") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Vernisáž:</strong>
                    </td>
                    <td>
                        <asp:Label ID="VernisazLabel" runat="server" Text='<%# Bind("Vernisaz") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Začátek:</strong>
                    </td>
                    <td>
                        <asp:Label ID="ZacatekLabel" runat="server" Text='<%# Bind("Zacatek") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Konec:</strong>
                    </td>
                    <td>
                        <asp:Label ID="KonecLabel" runat="server" Text='<%# Bind("Konec") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Otevírací doba:</strong>
                    </td>
                    <td>
                        <asp:Label ID="OteviraciDobaLabel" runat="server" Text='<%# Bind("OteviraciDoba") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Cena vstupenky pro děti:</strong>
                    </td>
                    <td>
                        <asp:Label ID="CenaVstupenkyDetiLabel" runat="server" Text='<%# Bind("CenaVstupenkyDeti") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Cena vstupenky pro dospělé:</strong>
                    </td>
                    <td>
                        <asp:Label ID="CenaVstupenkyDospeliLabel" runat="server" Text='<%# Bind("CenaVstupenkyDospeli") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Popis:</strong>
                    </td>
                    <td>
                        <asp:Label ID="PopisLabel" runat="server" Text='<%# Bind("Popis") %>' />
                    </td>
                </tr>
                <tr>
                    <td>
                        <strong>Podrobnější popis:</strong>
                    </td>
                    <td>
                        <asp:Label ID="DlouhyPopisLabel" runat="server" Text='<%# Bind("DlouhyPopis") %>' />
                    </td>
                </tr>
            </table>
        </ItemTemplate>
        <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" HorizontalAlign="Center" />
        <HeaderStyle BackColor="Tan" Font-Bold="True" />
        <EditRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
    </asp:FormView>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" OldValuesParameterFormatString="original_{0}"
        SelectMethod="ctiJednu" TypeName="Zadani09.db.ODS.VystavaDataObject">
        <SelectParameters>
            <asp:ControlParameter ControlID="GridView1" DefaultValue="0" Name="id" PropertyName="SelectedValue"
                Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
